package com.wcx.application.service.Impl;

import com.wcx.application.domian.CollegeBean;
import com.wcx.application.domian.PositionBean;
import com.wcx.application.mapper.CollegeMapper;
import com.wcx.application.mapper.PositionMapper;
import com.wcx.application.service.CollegeService;
import com.wcx.application.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollegeServiceImpl implements CollegeService {
    @Autowired
    CollegeMapper collegeMapper;

    @Override
    public List<CollegeBean> getList() {
        return collegeMapper.getList();
    }

    @Override
    public int update(CollegeBean collegeBean) {
        return collegeMapper.update(collegeBean);
    }

    @Override
    public int delete(int id) {
        return collegeMapper.delete(id);
    }


    @Override
    public int create(CollegeBean collegeBean) {
        return collegeMapper.create(collegeBean);
    }

    @Override
    public List<CollegeBean> searchList(CollegeBean collegeBean) {
        return collegeMapper.searchList(collegeBean);
    }



}
